﻿<controls:MetroWindow x:Class="BTM_Client_Application.LogInWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                      Title="LogInWindow" Height="173" Width="570" ResizeMode="NoResize"
                      Initialized="LogInWindow_OnInitialized" IsTabStop="False" WindowStartupLocation="CenterScreen">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/FlatButton.xaml" />-->
                <ResourceDictionary Source="pack://application:,,,/Styles/ButtonStyles.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/MyResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="160"/>
            <ColumnDefinition Width="160"/>
            <ColumnDefinition Width="30"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="26"/>
            <RowDefinition Height="1.6*"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="1.1*"/>
        </Grid.RowDefinitions>
        <Button Name="AcceptButton" TabIndex="2" Height="24" Foreground="White" Style="{StaticResource StandardButton}" Content="Accept" HorizontalAlignment="Center" VerticalAlignment="Center" Width="76" Grid.Row="2" Grid.Column="0" Click="AcceptButton_Click"/>
        <Button Name="CancelButton" TabIndex="3" Height="24" Foreground="White" Style="{StaticResource StandardButton}"  Content="Cancel" HorizontalAlignment="Center" VerticalAlignment="Center" Width="76" Grid.Row="2" Grid.Column="1" Click="CancelButton_Click"/>
        <PasswordBox Password="" Name="PasswordBox" TabIndex="1" Grid.Row="1" Grid.Column="1" Height="24" VerticalAlignment="Top" Margin="10,0,10,0"/>
        <TextBox Name="LoginBox" TextChanged="LoginBox_OnTextChanged" TabIndex="0" Grid.Column="0" Grid.Row="1" Height="24" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Margin="10,0,10,0"/>
        <Label Name="LoginLabel" Grid.Row="0" Grid.Column="0" Content="Login" HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
        <Label Name="PasswordLabel" Grid.Row="0" Grid.Column="1" Content="Password" HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
        <Button Name="ExpandButton" Style="{DynamicResource ChromelessButtonStyle}" Grid.Column="2" Grid.RowSpan="3" HorizontalContentAlignment="Center" Click="ExpandButton_Click">
            <Image Name="ExpandImage" VerticalAlignment="Center" HorizontalAlignment="Center" Source="{StaticResource NavigateNextImageLight}"/>
        </Button>

        <StatusBar Background="Transparent" BorderThickness="0,1,0,0" BorderBrush="#41B1E1" HorizontalAlignment="Stretch" Grid.ColumnSpan="3" Grid.Row="3" VerticalAlignment="Stretch">
            <StatusBarItem HorizontalContentAlignment="Stretch" VerticalAlignment="Stretch">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Name="StatusItem" Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2">
                        <!--<TextBlock VerticalAlignment="Center" Name="StatusLabel" Text="Status"/>
                        <TextBlock VerticalAlignment="Center" Text=":"/>-->
                        <TextBlock VerticalAlignment="Center" Name="StatusBox" Text="Ok" Margin="5,0,0,0"/>
                    </StackPanel>
                    <StackPanel Grid.Column="1" HorizontalAlignment="Right" Orientation="Horizontal">
                        <TextBlock Name="ProgramNameBox" VerticalAlignment="Center" Margin="5,0">DVB-TESS</TextBlock>
                    </StackPanel>
                    <!--<Image Name="StatusImage" Height="48" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Source="{StaticResource NetworkDisconnectImageLight}"/>-->
                </Grid>
            </StatusBarItem>
        </StatusBar>
        <StackPanel Grid.Column="3" HorizontalAlignment="Stretch" Grid.Row="0" Grid.RowSpan="3" VerticalAlignment="Stretch" Margin="5,0,5,0">
            <Label Name="IpLabel" HorizontalContentAlignment="Center" Content="Ip"/>
            <TextBox Name="IpBox" TextChanged="IpBox_OnTextChanged"/>
        </StackPanel>
        <StackPanel Grid.Column="4" HorizontalAlignment="Stretch" Grid.Row="0" Grid.RowSpan="3" VerticalAlignment="Stretch" Margin="5,0,5,0">
            <Label Name="LanguageLabel" Content="Language" HorizontalContentAlignment="Center"/>
            <ComboBox Name="LanguageBox"/>
        </StackPanel>
        <CheckBox Name="SaveLoginBox" Content="SaveLogin" IsThreeState="False" HorizontalAlignment="Center" VerticalAlignment="Bottom" Grid.Row="1" Grid.Column="0"/>
        <StatusBar Background="Transparent" BorderThickness="0,1,0,0" BorderBrush="#41B1E1" Grid.ColumnSpan="2" Grid.Column="3" HorizontalAlignment="Stretch" Grid.Row="3" VerticalAlignment="Stretch">
            <StatusBarItem HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0">
                        <Hyperlink RequestNavigate="WebSiteLink_OnRequestNavigate" NavigateUri="http://www.ate-lab.com">
                            <Run Name="WebSiteBox">
                                Profcon
                            </Run>
                        </Hyperlink>
                    </TextBlock>
                    <Label Name="OptionsLabel" Content="Options" VerticalAlignment="Center" HorizontalAlignment="Right"/>
                </Grid>
            </StatusBarItem>
        </StatusBar>
        <!--<controls:ProgressRing Name="LoadRing" Grid.Row="0" Grid.RowSpan="4" Grid.Column="0" Grid.ColumnSpan="2" Width="100" VerticalAlignment="Center"/>-->
    </Grid>
</controls:MetroWindow>
